-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decl_hdf5 MPI-I/O Collective or Independent, fix #419 #502
base: main
Are you sure you want to change the base?
Conversation
Previous review are in #494 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Three minor comments to change.
plugins/decl_hdf5/tests/compatibility_tests/PDI_C/mpi_independent_read_test.c
Outdated
Show resolved
Hide resolved
plugins/decl_hdf5/tests/compatibility_tests/PDI_C/mpi_independent_write_test.c
Outdated
Show resolved
Hide resolved
{ | ||
Raii_hid xfer_lst = make_raii_hid(H5Pcreate(H5P_DATASET_XFER), H5Pclose); | ||
if (use_mpio) { | ||
if (0 > H5Pset_dxpl_mpio(xfer_lst, m_mpio)) handle_hdf5_err(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My personal opinion: I think that all if/else blocks should use curly braces, even if there is only 1 line.
if (0 > H5Pset_dxpl_mpio(xfer_lst, m_mpio)) handle_hdf5_err(); | |
if (0 > H5Pset_dxpl_mpio(xfer_lst, m_mpio)) { | |
handle_hdf5_err(); | |
} |
if (m_direction == READ) | ||
do_read(ctx, h5_file, xfer_lst); | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (m_direction == READ) | |
do_read(ctx, h5_file, xfer_lst); | |
else | |
if (m_direction == READ) { | |
do_read(ctx, h5_file, xfer_lst); | |
} else { |
@@ -328,7 +340,7 @@ hid_t Dataset_op::dataset_creation_plist(Context& ctx, const Datatype* dataset_t | |||
return dset_plist; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return dset_plist; | |
return dset_plist; | |
} |
Possibility to choose parallel MPIIO pointer (COLLECTIVE/INDEPENDENT) for hdf5 in parallel.
List of things to check before making a PR
Before merging your code, please check the following:
.clang-format
;Fix #issue
keyword to autoclose the issue when merged.